﻿package mortal.game.scene3D.player.item
{
    import Message.Public.*;
    import extend.language.*;
    import frEngine.pools.*;
    import mortal.game.resource.*;
    import mortal.game.scene3D.player.entity.*;

    public class JumpPlayer extends BasePlayer
    {
        protected var _spoint:SPoint;

        public function JumpPlayer()
        {
            overPriority = Game2DOverPriority.Jump;
            return;
        }// end function

        override protected function disposeObject() : void
        {
            FrObjectPool.disposeObject(this, JumpPlayer);
            return;
        }// end function

        public function updatePoint(param1:SPoint) : void
        {
            this._spoint = param1;
            this.x2d = param1.x;
            this.y2d = param1.y;
            this.url = GlobalStaticResUrl.Jump;
            setTitle(Language.getString(20675));
            return;
        }// end function

        override public function hoverTest(param1:Number, param2:Number, param3:Number, param4:Number) : Boolean
        {
            var _loc_5:Number = 80;
            var _loc_6:Number = 80;
            _displayRec.x = this.x2d - param1 - _loc_5 / 2;
            _displayRec.y = this.y2d - param2 - _loc_6 / 2;
            _displayRec.width = _loc_5;
            _displayRec.height = _loc_6;
            return _displayRec.contains(param3, param4);
        }// end function

        override public function dispose(param1:Boolean = true) : void
        {
            this._spoint = null;
            super.dispose(param1);
            return;
        }// end function

        public function get spoint() : SPoint
        {
            return this._spoint;
        }// end function

    }
}
